<template>
  <ul class="affix">

    <li class="affix-item">
      <div class="ye">质量安全监管</div>
      <div class="ch">
        <div class="img">
          <img width="110" src="/public/resource/image/zljg.jpg" alt="">
        </div>
        <div class="text pt0">
          <h3>质量安全监管</h3>
          <p>质量安全监督人员使用微信扫描左侧二维码，登录质量安全监管小程序。</p>
        </div>
      </div>
    </li>

    <li class="affix-item">
      <div class="ye">个人小程序</div>
      <div class="ch">
        <div class="img">
          <img width="110" src="/public/resource/image/xcx-code.jpg" alt="">
        </div>
        <div class="text">
          <h3>个人服务平台</h3>
          <p>微信扫描左侧二维码，登录个人小程序。</p>
        </div>
      </div>
    </li>
    <li class="affix-item">
      <div class="ye">常见问题</div>
      <div class="ch">
        <div class="img">
          <img width="110" src="/public/resource/image/s3.png" alt="">
        </div>
        <div class="text">
          <h3>常见问题</h3>
          <p><a target="_blank" href="https://docs.qq.com/doc/DRmN0YkpucGJYUXpT?dver=">微信扫描查看或<span class="blue">点击此处</span>在线查看常见问题文档。</a></p>
        </div>
      </div>
    </li>
    <li class="affix-top">
      <BackTop></BackTop>
    </li>
  </ul>
</template>

<script lang="ts" >
import { defineComponent } from 'vue';
import { BackTop } from 'ant-design-vue';
export default defineComponent({
  components: {BackTop},
  setup() {
    return {

    }
  }
})
</script>

<style lang="less" scoped>
.affix{
  position: fixed;
  right: 0;
  bottom: 36%;
  z-index: 999;
  width: 40px;
  height: 323px;
  //margin-top: -160px;

  .affix-item{
    position: relative;
    width: 100%;
    min-height: 140px;
    padding: 10px;
    margin-bottom: 0;
    border: 1px solid #E5E5E5;

    &:nth-child(1){
      background: #fff url("/src/assets/img/affix-ZL.png") no-repeat center top 10px;
    }

    &:nth-child(2){
      background: #fff url("/src/assets/img/affix-ewm.png") no-repeat center top 10px;

    }

    &:nth-child(3){
      background: #fff url("/src/assets/img/question.png") no-repeat center top 10px;

    }

    .ye{
      padding-top: 28px;
      line-height: 18px;
      color: #000;
      text-align: center;
    }

    .ch{
      position: absolute;
      top: 0;
      right: 39px;
      display: none;
      width: 320px;
      height: 140px;
      padding: 15px;
      justify-content: space-between;
      background: #FFF;
      box-shadow: 0 0 6px rgba(0, 0, 0, 0.16);

      .text{
        width: 160px;
        height: 110px;
        padding-top: 10px;

        h3{
          padding-bottom: 5px;
          font-size: 18px;
          font-weight: bold;
          color: #222;
          border-bottom: 1px dashed #E6E6E6;
        }

        p{
          font-size: 14px;
          color: #000;
        }

        &.pt0{
          padding-top: 0;
        }
      }
    }

    &:hover{
      .ch{
        display: flex;
      }
    }
  }

  .affix-top{
    height: 40px;
    margin: 0;
  }

}

::v-deep(.ant-back-top) {
  position: relative;
  top: 0;
  left: 0;
  background: #fff;
  border: 1px solid #E5E5E5;

  .ant-back-top-content{
    background-color: transparent;

    &:hover{
      background-color: #fff;
    }
  }

  .ant-back-top-icon{
    background: url('/src/assets/img/affix-top.png') no-repeat center;
  }
}

</style>

